package com.demo.service;


import java.util.List;

import com.demo.entity.po.DeviceInventory;

import com.demo.entity.query.DeviceInventoryQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:service
 * @Date:2025-03-11
 * @author：author
*/
public interface DeviceInventoryService{

	/**
	 * 根据条件查询列表
	 */
	List<DeviceInventory> findListByParam(DeviceInventoryQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(DeviceInventoryQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<DeviceInventory> findListByPage(DeviceInventoryQuery  query);

	/**
	 * 新增
	 */
	Integer  add(DeviceInventory bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<DeviceInventory> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<DeviceInventory> listBean);


	/**
	 * 根据InventoryId查询
	 */
	DeviceInventory getDeviceInventoryByInventoryId(Integer inventoryId);

	/**
	 * 根据InventoryId更新
	 */
	Integer updateDeviceInventoryByInventoryId(DeviceInventory bean, Integer inventoryId);

	/**
	 * 根据InventoryId删除
	 */
	Integer deleteDeviceInventoryByInventoryId(Integer inventoryId);

	/**
	 * 编辑库存明细
	 * @param bean
	 */
	void saveInventory(DeviceInventory bean);

	/**
	 * 删除库存明细
	 * @param inventoryIds
	 */
	void delInventory(Integer[] inventoryIds);
}